package com.hr;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Transient;

import com.espirit.eap.annotation.Dict;
import com.espirit.eap.annotation.DomainModel;
import com.espirit.eap.sa.Employee;
import com.espirit.finance.core.AcctItem;
import com.espirit.finance.core.AcctItemScope;

@Entity
@DomainModel
public class SalaryAcctItem extends AcctItem{
	private static final long serialVersionUID = -3491664966363946728L;


	public String getDeptIds() {
		return deptIds;
	}


	public void setDeptIds(String deptIds) {
		this.deptIds = deptIds;
	}


	public List<AcctItemScope> safeChildren() {
		if (super.getAcctItemScopes() == null){
			List<AcctItemScope> prices = new ArrayList<AcctItemScope>();
			super.setAcctItemScopes(prices);
		}
		return super.getAcctItemScopes();
	}

	@Transient
	public String getDeptNames() {
		return deptNames;
	}


	public void setDeptNames(String deptNames) {
		this.deptNames = deptNames;
	}

//	public String getWorkGroupIds() {
//		return workGroupIds;
//	}
//
//
//	public void setWorkGroupIds(String workGroupIds) {
//		this.workGroupIds = workGroupIds;
//	}
//
//	@Transient
//	public String getWorkGroupNames() {
//		return workGroupNames;
//	}
//
//
//	public void setWorkGroupNames(String workGroupNames) {
//		this.workGroupNames = workGroupNames;
//	}

	@Dict(type=Employee.ATTRIBUTE)
	public Integer getEmployeeAttribute() {
		return employeeAttribute;
	}


	public void setEmployeeAttribute(Integer employeeAttribute) {
		this.employeeAttribute = employeeAttribute;
	}

	private String deptIds;
	private String deptNames;
	
	private Integer employeeAttribute;
	
}
